package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.Purchase;
import com.ruoyi.system.domain.vo.PriceT;

/**
 * 采购单Service接口
 * 
 * @author ruoyi
 * @date 2023-12-27
 */
public interface IPurchaseService 
{
    /**
     * 查询采购单
     * 
     * @param purchaseID 采购单主键
     * @return 采购单
     */
    public Purchase selectPurchaseByPurchaseID(Long purchaseID);

    /**
     * 查询采购单列表
     * 
     * @param purchase 采购单
     * @return 采购单集合
     */
    public List<Purchase> selectPurchaseList(Purchase purchase);

    /**
     * 新增采购单
     * 
     * @param purchase 采购单
     * @return 结果
     */
    public int insertPurchase(Purchase purchase);

    /**
     * 修改采购单
     * 
     * @param purchase 采购单
     * @return 结果
     */
    public int updatePurchase(Purchase purchase);

    /**
     * 批量删除采购单
     * 
     * @param purchaseIDs 需要删除的采购单主键集合
     * @return 结果
     */
    public int deletePurchaseByPurchaseIDs(Long[] purchaseIDs);

    /**
     * 删除采购单信息
     * 
     * @param purchaseID 采购单主键
     * @return 结果
     */
    public int deletePurchaseByPurchaseID(Long purchaseID);

    public List<PriceT> selectPurchByWeek();
}
